package com.android.jblm.commandcentral;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;

import com.android.jblm.commandcentral.objects.Calendar;

/**
 * Created by Brian 2014.
 */
public class MainLauncher extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_launcher);
    }

    public void openDirectory(View view)
    {
        Intent intent = new Intent(this, PhoneBookActivity.class);
        startActivity(intent);
    }

    public void openNews(View view)
    {
        Intent intent = new Intent(this, News.class);
        startActivity(intent);
    }

    public void openInfo(View view)
    {
        Intent intent = new Intent(this, Information.class);
        startActivity(intent);
    }

    public void openMap(View view)
    {
        Intent intent = new Intent(this, MapsActivity.class);
        startActivity(intent);
    }

    public void openCalendar(View view)
    {
        Intent intent = new Intent(this, Calendar.class);
        startActivity(intent);
    }

    public void openAlertSignup(View view)
    {
        Intent intent = new Intent(this, AlertSignup.class);
        startActivity(intent);
    }



    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
        if (id == R.id.action_settings) {
            return true;
        }
        return super.onOptionsItemSelected(item);
    }
}
